import junit.framework.TestCase;


public class BinaryTreeTest extends TestCase{

	  public void testBinaryTree() {
		    System.out.println("Construye bien");
	        Node raiz = new Node("a",0);
	        BinaryTree arbol = new BinaryTree(raiz, null, null);
	        boolean expResult = false;
	        boolean result    = arbol.isEmpty();
	        assertEquals(expResult, result);
	  }

	  public void testGetRoot() {
		    System.out.println("Devuelve Raiz");
	        Node raiz = new Node("a",0);
	        Node izq = new Node("b",1);
	        Node der = new Node("c",1);
	        BinaryTree arbol = new BinaryTree(raiz, null, null);
	        Node expResult = raiz;
	        Node result    = arbol.getRoot();
	        assertEquals(expResult, result);
	  }

	  public void testgetLeftChild() {
		    System.out.println("Devuelve Izq");
	        Node raiz = new Node("a",0);
	        Node raiz2 = new Node("b",1);
	        BinaryTree izq = new BinaryTree(raiz2, null, null);
	        BinaryTree arbol = new BinaryTree(raiz, izq, null);
	        BinaryTree expResult = izq;
	        BinaryTree result    = arbol.getLeftChild();
	        assertEquals(expResult, result);
	  }

	  public void testgetRightChild() {
		  System.out.println("Devuelve Der");
	        Node raiz = new Node("a",0);
	        Node raiz2 = new Node("b",1);
	        BinaryTree der = new BinaryTree(raiz2, null, null);
	        BinaryTree arbol = new BinaryTree(raiz, null, der);
	        BinaryTree expResult = der;
	        BinaryTree result    = arbol.getRightChild();
	        assertEquals(expResult, result);
	  }
}
